package com.ljb.logger_demo;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.ljb.logger.Logger;

public class MainActivity extends AppCompatActivity {

    private String CONTENT_JSON = "{\"flag\":\"isPass\",\"userBean\":{\"factoryId\":1151041125,\"factoryName\":\"东莞寮步竹园污水厂\",\"userId\":89,\"userImage\":\"\",\"userLoginName\":\"dg\",\"userPwd\":\"9d64938f3a258a945edc613ec6abd5f7\",\"userSex\":1}}";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        //原生Logger
        Logger.init("ljb_log");
        Logger.json(CONTENT_JSON);

        com.orhanobut.logger.Logger.init("shengji_logger").singleMode();
        com.orhanobut.logger.Logger.json(CONTENT_JSON);
    }
}
